/*
 * @Description: file content
 */
import axios from 'axios';

const uploadFun = (path, formDatas) => {
  const params = new FormData();
  for (const i in formDatas) {
    params.append(i, formDatas[i]);
  }
  return axios
    .post(path, params, {
      headers: {
        'Content-Type': 'multipart/form-data',
      },
    });
};
export default uploadFun;
